package com.data.modules.smzh.mapper;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.data.common.api.vo.Result;
import com.data.modules.smzh.entity.Building;
import com.data.modules.smzh.entity.SmDeviceLogs;
import com.data.modules.smzh.vo.BuildReqVo;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

/**
 * @Description: 建筑资产表
 * @Author: data-boot
 * @Date:   2022-11-26
 * @Version: V1.0
 */
public interface BuildingMapper extends BaseMapper<Building> {

    List<Building> selectBuildByProjectList(@Param("projectlist") List<String> projectlist,@Param("model") String model);

    List<String> selectDeviceInfoByProjectId(@Param("projectId") String projectId);

    IPage<Building> queryPageList(Page<Building> page, @Param("data") Building queryWrapper);

    List<Building> searchBuildInfo(@Param("data") BuildReqVo buildReqVo,@Param("appId") String appId);

    Building searchByAppRegistId(@Param("registerId")  String registerId);

    List<Map> queryVisitorInfo(@Param("data") SmDeviceLogs createBy);

    List<Building> searchBuildData(@Param("name")String name);
}
